Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the function type #273

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Correct the function type #273

merged 1 commit into from
Oct 8, 2024

Conversation

NOVBobLee
Copy link
Contributor

@NOVBobLee NOVBobLee commented Oct 7, 2024

The function pointer type of myvariable_store is incompatible with the store member of struct kobj_attribute[1]. So, if we omit the type conversion (void *), we will meet a compilation error. This patch corrects the function declaration and removes the type conversion.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/kobject.h#n139

Copy link
Contributor

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve the English writing in git commit messages, resolving grammar mistakes and making the access to structure members more readable.

The function pointer type of myvariable_store was incompatible with the
store member of struct kobj_attribute, leading to a compilation error
when the type conversion (void *) was omitted. This patch corrects the
function declaration and eliminates the need for type conversion.
@NOVBobLee
Copy link
Contributor Author

Just refine the git commit message. Please review it again, thx!

@jserv jserv merged commit 756871e into sysprog21:master Oct 8, 2024
1 check failed
@jserv
Copy link
Contributor

jserv commented Oct 8, 2024

Thank @NOVBobLee for contributing!

@NOVBobLee NOVBobLee deleted the pr_patch branch October 8, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants